﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace CommunitySystemModel
{
    [Serializable]
    [DataContract]
    public class PeiZhiLieModel
    {
        private int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        private int _UserID;
        [DataMember]
        public int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }

        private string _Content = string.Empty;
        [DataMember]
        public string Content
        {
            get { return _Content; }
            set { _Content = value; }
        }

        public static PeiZhiLieModel FillEntity(DataRow dr)
        {
            PeiZhiLieModel right = new PeiZhiLieModel();
            right.ID = (int)dr["ID"];
            right.UserID = (int)dr["UserID"];
            right.Content = dr["Content"] as string;
            
            return right;
        }
    }
}
